]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Make autorun notifications work
authorMatthias Clasen <mclasen@redhat.com>
Mon, 1 Jul 2013 20:52:26 +0000 (16:52 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 1 Jul 2013 20:54:01 +0000 (16:54 -0400)
The code that checks for various conditions is confusing and
undercommented. It appears one of the recent refactorings
inadvertedly inverted the sense of the 'hidden mountpoint'
check, and caused autorun to not work for anything that does
not have a 'native root' - which is pretty much all volumes
implemented by gvfs.

https://bugzilla.gnome.org/show_bug.cgi?id=703418

js/ui/components/autorunManager.js

index 88b08a2afd475c24d1e821d3c1786feb27101bf9..2667c02d3ac57c05bf3aa115b908a417e1d11642 100644 (file)
@@ -31,7 +31,7 @@ function shouldAutorunMount(mount, forTransient) {
     if (!volume || (!volume.allowAutorun && forTransient))
         return false;
 
-    if (!root.is_native() || isMountRootHidden(root))
+    if (root.is_native() && isMountRootHidden(root))
         return false;
 
     return true;